package com.example.bjsfpost.sap;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SapRoutingResponseVO implements Serializable {
    private static final long serialVersionUID = 7594220269137291212L;
    /**
     * 工艺路线维护-返回消息
     */
    @JsonProperty("FE_OUTPUT")
    private ZppRoutingMaintainMsg feOutput;

    @Data
    public static class ZppRoutingMaintainMsg implements Serializable {

        private static final long serialVersionUID = 7945541107328460509L;
        /**
         * S成功;E失败
         */
        @JsonProperty("FLAG")
        private String flag;
        /**
         * 任务清单组码
         */
        @JsonProperty("PLNNR")
        private String plnnr;
        /**
         * 组计数器
         */
        @JsonProperty("PLNAL")
        private String plnal;
        /**
         * 消息
         */
        @JsonProperty("MESSAGE")
        private String message;

    }

    @JsonProperty("FT_BOM")
    private List<SapRoutingRequestDTO.ZppRoutingMaintainBom> ftBom;

    @JsonProperty("FT_OPERATION")
    private List<SapRoutingRequestDTO.ZppRoutingMaintainOperation> ftOperation;

    @JsonProperty("FT_TASK")
    private List<SapRoutingRequestDTO.ZppRoutingMaintainTask> ftTask;
}
